<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Index View</title>
</head>
<body>
    <h1>This is a Index View</h1>
    <h2 th:unless="${session.loginUser==null}" th:text="${session.loginUser.username}"></h2>
    <a th:if="${session.loginUser==null}" href="http://localhost:8001/view?target=http://localhost:8002/view">登录</a>
    <a th:unless="${session.loginUser==null}" href="#">退出</a>
</body>
</html>